package com.liuwa.knowledge.query;

import com.liuwa.common.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.liuwa.common.bean.SortedPageQuery;
import org.springframework.data.domain.Sort;

/**
 * 模块查询
 * 
 * @author liuwa
 * @date 2025-04-03 08:31:16
 */
@ApiModel(description = "模块查询")
public class ModuleQuery extends SortedPageQuery{



    /** 模块名称 */
    @ApiModelProperty(name="name", required = true, value="模块名称")
    private String name;


    /** 模块标题 */
    @ApiModelProperty(name="title", required = true, value="模块标题")
    private String title;


    /** 教材 */
    @ApiModelProperty(name="bookId", required = true, value="教材")
    private Integer bookId;








    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setBookId(Integer bookId) 
    {
        this.bookId = bookId;
    }

    public Integer getBookId() 
    {
        return bookId;
    }



    @Override
    public Sort defaultSort() {
        return Sort.by(Sort.Order.asc("id"));
    }

}
